﻿using System.ComponentModel.DataAnnotations;

namespace C556Backside.Models;

public class VoluntaryActivityModel
{
    public VoluntaryActivityModel()
    {
        ActivityID = Guid.NewGuid().ToString();
        ActivityCreateTime = DateTime.Now.ToLocalTime();
    }
    [Key]
    public string ActivityID { get; set; }
    public string ActivityName { get; set; }
    public string ActivityTypeID { get; set; }
    public DateTime ActivityCreateTime { get; set; }
    public string ActivityCompleteTime { get; set; }
    public bool ActivityComplete { get; set; }
    public string? VoluntaryContent { get; set; }
    public string OrganizationID { get; set; }
    public string Province { get; set; }
    public string City { get; set; }
    public string Area { get; set; }
    public string DetailedAddress { get; set; }
    public bool IsDelete { get; set; } = false;
    public virtual OrganizationModel OrganizationModel { get; set; }
    public virtual ActivityTypeModel ActivityTypeModel { get; set; }
    public virtual ICollection<VAandVRelationshipsModel> VAandVRelationshipsModels { get; set; } = new List<VAandVRelationshipsModel>();
}
